// 对外暴露配置路由（常量路由）
export const constantRoutes = [
    {
        path:'/login',
        name:'Login',
        component:()=>import('@/views/login/index.vue'),
        meta:{
            title:'登录',//菜单标题
            hidden: true,//代表路由标题在菜单中是否隐藏
            icon:'',//菜单图标
        }
    },
    {
        path:'/',
        component:()=>import('@/layout/index.vue'),
        name:'Layout',
        redirect:'/home',
        meta:{
            title:'',
            hidden: false,
            icon:''
        },
        children:[
            {
                path:'/home',
                name:'Home',
                component:()=>import('@/views/home/index.vue'),
                meta:{
                    title:'首页',
                    hidden: false,
                    icon:'HomeFilled'
                }
            }
        ]

    },
    {
        path:'/screen',
        name:'Screen',
        component:()=>import('@/views/screen/index.vue'),
        meta:{
            title:'数据大屏',
            hidden: false,
            icon:'Platform'
        }
    },
    {
        path:'/auth',
        name:'Auth',
        component:()=>import('@/layout/index.vue'),
        redirect:'/auth/user',
        meta:{
            title:'权限管理',
            hidden: false,
            icon:'Lock'
        },
        children:[
            {
                path:'/auth/user',
                name:'User',
                component:()=>import('@/views/auth/user/index.vue'),
                meta:{
                    title:'用户管理',
                    hidden: false,
                    icon:'UserFilled'
                }
            },
            {
                path:'/auth/role',
                name:'Role',
                component:()=>import('@/views/auth/role/index.vue'),
                meta:{
                    title:'角色管理',
                    hidden: false,
                    icon:'Avatar'
                }
            },
            {
                path:'/auth/permission',
                name:'Permission',
                component:()=>import('@/views/auth/permission/index.vue'),
                meta:{
                    title:'菜单管理',
                    hidden: false,
                    icon:'Grid'
                }
            }
        ]
    },
    {
        path:'/product',
        name:'Product',
        component:()=>import('@/layout/index.vue'),
        redirect:'/product/trademark',
        meta:{
            title:'商品管理',
            hidden: false,
            icon:'Goods'
        },
        children:[
            {
                path:'/product/trademark',
                name:'Trademark',
                component:()=>import('@/views/product/trademark/index.vue'),
                meta:{
                    title:'品牌管理',
                    hidden: false,
                    icon:'ShoppingCartFull'
                }
            },
            {
                path:'/product/attr',
                name:'Attr',
                component:()=>import('@/views/product/attr/index.vue'),
                meta:{
                    title:'属性管理',
                    hidden: false,
                    icon:'Briefcase'
                }
            },
            {
                path:'/product/sku',
                name:'Sku',
                component:()=>import('@/views/product/sku/index.vue'),
                meta:{
                    title:'SKU管理',
                    hidden: false,
                    icon:'Setting'
                }
            },
            {
                path:'/product/spu',
                name:'Spu',
                component:()=>import('@/views/product/spu/index.vue'),
                meta:{
                    title:'SPU管理',
                    hidden: false,
                    icon:'Setting'
                }
            }
        ]
    },
    {
        path:'/404',
        name:'404',
        component:()=>import('@/views/404/index.vue'),
        meta:{
            title:'404',
            hidden: true,
        }
    },
    {
        path: '/system',
        name: 'System',
        component: () => import('@/layout/index.vue'),
        meta: {
            title: '系统管理',
            hidden: false,
            icon:'Tools'
        },
        children:[
            {
                path: '/system/flow',
                name: 'Flow',
                component: () => import('@/views/system/flow/index.vue'),
                meta: {
                    title: '流程管理',
                    hidden: false,
                    icon:'Promotion'
                },
            },
        ]
     },
    {
        path: '/:pathMatch(.*)*',
        name: 'Any',
        component: () => import('@/views/404/index.vue'),
        meta: {
            title: '任意路由',
            hidden: true,
        }
    }
    
]